Skip to content

fix(admin): label mentor field "Mentor" not "Grad mentor" (#806)#1373

Merged
jonfroehlich merged 1 commit into
masterfrom
806-rename-grad-mentor-to-mentor
Jun 22, 2026
Merged

fix(admin): label mentor field "Mentor" not "Grad mentor" (#806)#1373
jonfroehlich merged 1 commit into
masterfrom
806-rename-grad-mentor-to-mentor

Conversation

@jonfroehlich

@jonfroehlich jonfroehlich commented Jun 22, 2026

Copy link
Copy Markdown
Member

Closes #806.

Background

Issue #806 (2019) reported that non-grad members (e.g. a software developer like "Mikey") couldn't be selected as a "Grad Mentor", and proposed renaming the field to "Mentor" so any active member could be chosen. A co-mentor field was also floated.

What's actually true today

  • Selectability is already fixed. get_active_mentors_queryset() (website/admin/utils.py) populates the dropdown with any active senior lab member — PhD/MS students, postdocs, the director, software developers, designers, and research scientists — not just grad students. The original "can't select Mikey" complaint no longer applies.
  • The only thing that still read "Grad Mentor" was the admin field label. Public bios already say "mentored by …" (bio_utils.py), never "grad mentor".

This PR

Sets verbose_name='Mentor' on Position.grad_mentor so the admin label reads "Mentor", matching the broadened behavior.

The DB column is intentionally not renamed. This repo regenerates website/migrations/ non-interactively per environment; a field rename can't be confirmed at startup and would be applied as drop-column + add-column — i.e. data loss. That was the exact server-access blocker noted on #806 in 2019. verbose_name is a state-only change with no schema impact, so it's safe to push.

Co-mentor field: deliberately not added — no demonstrated demand.

Test

Adds test_position_mentor_label.py pinning verbose_name == "Mentor" so the label can't silently regress. Passing locally.

)

The mentor dropdown stopped being grad-only long ago — get_active_mentors_queryset
already offers any active senior lab member (PhD/MS/postdoc/director/dev/designer/
research scientist), so a non-grad like a software developer can be selected. Only
the admin label still read "Grad mentor", which was misleading.

Set verbose_name='Mentor' so the label matches the behavior. The DB column is
intentionally not renamed: this repo regenerates migrations non-interactively per
environment, where a field rename can't be confirmed and would drop the column
(the original blocker in #806). verbose_name fixes the label with no schema change.

Co-mentor support (also floated in #806) is intentionally left out — no demand.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonfroehlich jonfroehlich merged commit 01a35c4 into master Jun 22, 2026
2 of 3 checks passed
@jonfroehlich jonfroehlich deleted the 806-rename-grad-mentor-to-mentor branch June 22, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change Grad Mentor to simply Mentor so any ML member can be selected as a mentor

1 participant